
<?php echo $this->Form->create('Account'); ?>
<script>
	$(function() {
		$( ".calendario" ).datepicker();
	});
</script>
<table id="tabla"  class="tabla">
    <tbody>
        <tr>
            <td><?php ?></td>
            <td><?php echo $this->Form->hidden("Account.contract_id",array('value'=>$contract_id)); ?></td>
        </tr>
        <tr>
            <td><?php echo $this->Form->input("Account.monto", array('label' => 'Monto')); ?></td>
            <td><?php echo $this->Form->input("Account.fecha_inicio", array('label' => 'Fecha de inicio','class'=>'calendario','type'=>'text')); ?></td>
        </tr>
        <tr>
            <td><?php echo $this->Form->input("Account.fecha_final", array('label' => 'Fecha finalizacion','class'=>'calendario','type'=>'text')); ?></td>
            <td><?php echo $this->Form->input("Account.fecha_cuenta", array('label' => 'Fecha en a cuenta de cobro','class'=>'calendario','type'=>'text')); ?></td>
       </tr> 
       
    </tbody>
</table>

<?php
echo $this->Ajax->submit('Guardar', array('url' => array('controller' => 'Accounts', 'action' => 'add',$contract_id), 'update' => 'content', 'indicator' => 'loading'));
echo $this->Form->end();
?>
<?php echo $this->Ajax->link($this->Html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar')), array('controller' => "Accounts", "action" => "index", $this->Session->read('contrato')), array('update' => 'content', 'indicator' => 'loading', 'escape' => false), null) ?>
